package Hibernate.cn.edu.scau.cmi.lishuoxin.client;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

public class MainApplication extends Application{

	@Override
	public void start(Stage primaryStage) throws Exception {
		Pane mainPane = new Pane();
		StudentPane studentPane = new StudentPane();
		TeacherPane teacherPane = new TeacherPane();
		studentPane.setLayoutX(50);
		studentPane.setLayoutY(50);
		studentPane.getChildren().add(teacherPane);
		mainPane.getChildren().add(studentPane);
		
		Scene s = new Scene(mainPane,900,900);
		primaryStage.setTitle("Hibernate框架实现数据库");
		primaryStage.setScene(s);
		primaryStage.show();
		
	}
	
	public static void main(String[] args) {
		Application.launch(args);
	}

}
